/**
 * 
 */
package pl.edu.agh.to;

/**
 * @author karulis
 * 
 */
public class Course {
	private String name;
	private String group;

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @param group
	 *            the group to set
	 */
	public void setGroup(String group) {
		this.group = group;
	}

	/**
	 * @return the group
	 */
	public String getGroup() {
		return group;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 * @param group
	 */
	public Course(String name, String group) {
		super();
		this.name = name;
		this.group = group;
	}

	@Override
	public String toString() {
		return getName() + " - " + getGroup();
	}

	@Override
	public boolean equals(Object course) {
		return this.toString().equals(course.toString());
	}

}
